#!/usr/bin/env python
# -*- coding: utf-8 -*-

def do_format():
    province_list = []
    with open('prov.txt', 'r') as f:
        with open('prov_result.txt', 'w') as f2:
            while True:
                line = f.readline()
                if not line:
                    break

                id, cn_name, name = line.split()
                f2.write('(%s, \'%s\', \'%s\'),\n' % (id, cn_name, name))


if __name__ == '__main__':
    do_format()
